<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<script>
/**
 * this stub is for the pages which may need the VIP Card search
 */
 function searchChainStore(){
	 var chainName = $("#chainName").val();
	 
	 var param = "";
	 var indicator = $("#indicator").val();
	 if (indicator != undefined)
		 param = "formBean.indicator=" + indicator + "&";

	 var accessLevel = $("#accessLevel").val();
	 if (accessLevel != undefined)
		 param += "formBean.accessLevel=" + accessLevel + "&";
	 
	 if (chainName != undefined)
		 param += "formBean.chainStore.chain_name=" + chainName;
		 	 
	 var url = "chainMgmtJSP!listChainStore" + "?" + param;

	 window.open(encodeURI(encodeURI(url)),'新窗口','height=400, width=400, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, status=no');  
}

function selectChainStore(chainId, chainName, clientId){
	$("#chainId").val(chainId);
	$("#chainName").val( chainName);
	$("#clientId").val(clientId);
	changeChainStore(chainId);
}
function clearChainName(){
	$("#chainId").val("");
	$("#clientId").val("");
	$("#chainName").val("");
}
</script>

<s:hidden name="formBean.chainStore.chain_id" id="chainId" />
<s:hidden name="formBean.chainStore.client_id" id="clientId" />
<s:textfield name="formBean.chainStore.chain_name" id="chainName"
	size="18" readonly="false" />
<input type="button" id="checkChainStoreBt" value="..."
	onclick="searchChainStore();" />
<input type="button" id="clearBtn" value="清除" onclick="clearChainName();"/>

